<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <title>index</title>
</head>
<body>
    <p>欢迎用户${user.username}</p>
    <table>
        <tr>
            <td>书编号</td>
            <td>书名</td>
            <td>作者</td>
            <td>类型</td>
        </tr>

        <c:forEach items="${books}"  var="book">
            <tr>
                <td>${book.bookId}</td>
                <td>${book.name}</td>
                <td>${book.author}</td>
                <td>${book.type}</td>
            </tr>
        </c:forEach>
    </table>

</body>
</html>